package com.wonghiu.framework.common.exception;

import com.wonghiu.framework.common.enums.HRpcErrorMessageEnum;

/**
 * @Author wonghiu
 * @Date 2021/8/10 20:15
 * @Version 1.0.1
 */
public class HRpcException extends RuntimeException {
    public HRpcException(HRpcErrorMessageEnum rpcErrorMessageEnum, String detail) {
        super(rpcErrorMessageEnum.getMessage() + ":" + detail);
    }

    public HRpcException(String message, Throwable cause) {
        super(message, cause);
    }

    public HRpcException(HRpcErrorMessageEnum rpcErrorMessageEnum) {
        super(rpcErrorMessageEnum.getMessage());
    }
}

